package oop1.Task1;

public class Car {
    String brand;
    int price;
    String youHao;
    String color;

    public void show() {
        System.out.println("汽车品牌是" + brand + ",价格是" + price + "元");
        System.out.println("颜色是" + color + ",油耗是" + youHao);
    }

    public void qiDong() {
        System.out.println("汽车启动了");
    }

    public void stop() {
        System.out.println("汽车停止了");
    }

    public void sound() {
        System.out.println("汽车鸣笛");
        System.out.println("滴---滴---滴---滴---滴");
    }

}
